package pl.makimo.fuzzy.linguistics;

import java.util.HashMap;
import java.util.Map;

import pl.makimo.fuzzy.sets.ContinuousFuzzySet;
import pl.makimo.fuzzy.sets.CrispSet;
import pl.makimo.fuzzy.sets.DiscreteFuzzySet;
import pl.makimo.fuzzy.sets.FuzzySet;

public class ContinuousLinguisticVariable<T> extends LinguisticVariable<T> {
	double min;
	double max;
	
	public ContinuousLinguisticVariable(double min, double max) {
		this.min = min;
		this.max = max;
	}	
	
	public void add(String label, FuzzySet<T> set) {
		((ContinuousFuzzySet)set).setMin(this.min);
		((ContinuousFuzzySet)set).setMax(this.max);
		set.column = name;
		labels.put(label, set);
	}
}
